//获取应用实例
var app = getApp();
Page({
  data: {
    banners:["/images/zairu1.jpg"
    ,"/images/zairu2.jpg"
    ,"/images/zairu3.jpg"],
    swiperMaxNumber: 3,
    swiperCurrent: 0
  },
  onLoad:function(){
    const _this = this
  },
  onShow:function(){
    
  },
  swiperchange: function (e) {
    console.log(e.detail.current)
    this.setData({
      swiperCurrent: e.detail.current
    })
  },
  goToIndex: function (e) {
    wx.switchTab({
        url: '/pages/index/index',
    });
  },
  imgClick(){
    if (this.data.swiperCurrent + 1 != this.data.swiperMaxNumber) {
      wx.showToast({
        title: '左滑进入',
        icon: 'none',
      })
    }
  }
});